package com.agou.app.admin.business.user.dao;

import java.io.IOException;
import java.sql.SQLException;

import com.agou.app.admin.dbconfig.bean.TSAdminUser;
import com.agou.app.admin.dbconfig.bean.TSAdminUserLog;
import com.agou.app.admin.dbconfig.bean.TSAdminUserSecurity;
import com.agou.core.ss.SSException;
import com.agou.ssh.core.base.BaseDao;

public abstract class IUserDao extends BaseDao{
	
	//添加用户
	public abstract int saveUser(TSAdminUser adminUserVo) throws SSException, SQLException, IOException;
	//添加用户安全
	public abstract int saveUserSecurity(TSAdminUserSecurity adminUserSecurityVo) throws SSException, SQLException, IOException;
	//添加用户日志
	public abstract int saveUserLog(TSAdminUserLog adminUserLogVo) throws SSException, SQLException, IOException;
	
	// 查询用户信息根据登陆ID
	public abstract TSAdminUser queryUserByUserLoginId(String userLoginId) throws SSException, SQLException, IOException;
	// 查询用户信息根据用户ID
	public abstract TSAdminUser queryUserById(long userId) throws SSException, SQLException, IOException;
	// 查询用户安全信息
	public abstract TSAdminUserSecurity queryUserSecurity(long userId) throws SSException,SQLException, IOException;
}
